package
{
	import org.youyee.game.interfaces.IDepthItem;
	import org.youyee.game.managers.DepthManager;
	import org.youyee.game.pathFinding.PathNode;
	
	public class TestDepthItem implements IDepthItem
	{
		private var _pathNode:PathNode;
		private var _width:int;
		private var _height:int;
		
		private var _areaSize:int;
		private var _itemWidth:int;
		private var _itemHeight:int;
		private var _name:String;
		
		public function TestDepthItem(name:String, pNode:PathNode, width:int, height:int)
		{
			this._name = name;
			this._pathNode = pNode;
			this._itemWidth = width;
			this._itemHeight = height;
			
			this._areaSize = width * height;
		}
		
		public function get zIndex():int
		{
			return _pathNode.x + _pathNode.y;
		}
		
		public function get pathNode():PathNode
		{
			return this._pathNode;
		}
		
		public function set depthManager(value:DepthManager):void
		{
		}
		
		public function get depthManager():DepthManager
		{
			return null;
		}
		
		public function get itemWidth():int
		{
			return _itemWidth;
		}
		
		public function get itemHeight():int
		{
			return _itemHeight;
		}
		
		public function get areaSize():int
		{
			return _areaSize;
		}
		
		public function toString():String
		{
			return "[" + _name + ": " + _pathNode.toString() + "]";
		}
	}
}